package com.ytjj.qmyx.admin.dao;

import com.ytjj.qmyx.admin.model.response.ProductSpecialResponse;
import com.ytjj.qmyx.mall.model.ProductSpecial;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ProductSpecialDao {

    int deleteProductSpecial(Integer specialId, Integer productId);

    int updateProductSpecial(ProductSpecial productSpecial);

    List<ProductSpecial> selectProductSpecial(Integer specialId, Integer productId);

    int checkSpecialProduct(ProductSpecial productSpecial);

    int isRecommendFlag(Integer productId, Integer specialId, Integer recommendFlag);

    List<ProductSpecialResponse> productSpecial(@Param("productId") Integer productId);

    void batchSpecialProduct(ProductSpecial productSpecial);

    void batchUpProductSpecialId(@Param("id")Integer id, @Param("specialId")Integer specialId);
}
